﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EricUtility;
using EbayQueryExpertLib.EbayFinding;

namespace EbayQueryExpertLib.Entities
{
    /*
    Voici le contenu des address Bar pour chacune de mes 45 recherches.

    Le contenu des favoris (URL dans propriétés) était différent: 
    lorsque je le mettais dans la barre d'adresse, il changeait! 
    De toute facon ce n'etait pas du tout compréhensible.

    Nous pouvons utiliser ces adresses (assez compréhensibles) pour LOADER mes recherches. 
    Le numéro a gauche est mon no. de recherche personnel, il sert à les identifier. 
    Lors des tests il serait bon d'utiliser ce numéro pour comparer les résultats. 

    Le premier bloc de 45 lignes (01 à 45) contient l'adresse telle que copiée.
    Les 2ème bloc de 45 (aussi de 01 à 45) est un résumé très sommaire (presque inutile).

    -----------------------------------------------------------------------------------------

    Détails des choses importantes à comprendre la dedans afin d'obtenir les mêmes résultats:

    La catégorie apparait souvent au début entre deux "/" (ex: no 01). 
    Comme tu vois je ne cherche pas toujours dans les memes catégories...
    D'autres fois il apparait plus loin, apres "_sacat=" et/ou après "_osacat=" (ex: no 02).

    Il semble que je ne cherche jamais dans les descriptions... (à confirmer, on va comparer). 

    Je cherche presque toujours (une seule  exception je crois) ITEMS LOCATED IN ANY COUTRY 
    (ex: no 01, LH_LocatedIn=1&LH_SALE_CURRENCY=0)
    (ex: no 14, LH_SALE_CURRENCY=0 dans catégorie au complet).

    J'ai quelques recherches avec BUY IT NOW (only): "LH_BIN=1"
    (no 11, 12, 13, 44, 45 seulement). Tout le reste = rien de cela = tous les formats de listings.


    Recherches par mots clef (attention, les astérisques sont importants lorsque présents):

    - Un seul mot clef, "_nkw=" (ex: no 11 "token").
    - Un seul mot clef générique "_nkw=" (ex: no 15 "token*).
    - Plusieurs mots clef (générique ou pas), ALL WORDS (ex: no 24 "_nkw=hudson*+bay").
    - plusieurs mots précisément: "%22" au début et à la fin (ex: no 04 "%22self+government%22").
    - exclusions de un ou plusieurs mots "+-" (ex: no 01 "+-dollar+-..." après les mots clef voulus).
    - Toutes ces possibilités peuvent être combinées ensemble et/ou avec le prochain...
    - Plusieurs blocs de mots ANY OF THESE WORDS, chaque bloc devenant un mot pour ALL WORDS:
      Saisi/montré dans la petite fenêtre : "(1812, tiffin, ...) (tiffin, half, ..., lc*, ...)"
      Cela équivaut à dire  (1812 OU tiffin OU ...)  ET  (tiffin OU half OU ... ou lc* OU ...)
      Ex: no 01 "_nkw=%281812%2C+tiffin%2C+...%29+%28tiffin%2C+half%2C+...%2C+lc*%2C+...%29"
      %28 = "(" = debut du bloc de plusieurs OU
      %29 = ")" = fin du bloc de plusieurs OU
      %2C+ = "," = séparation? virgule?
      "+" entre %29 et %28 = ET/AND (ALL blocks)
      PLEIN D'AUTRES EXEMPLES DANS CES RECHERCHES, AVEC ou SANS COMBINAISONS DES CHOSES DÉCRITES).

    -----------------------------------------------------------------------------------------

    01- http://coins.shop.ebay.com/Coins-Paper-Money-/11116/i.html?LH_LocatedIn=1&LH_SALE_CURRENCY=0&LH_IncludeSIF=1&_nkw=%281812%2C+tiffin%2C+tiffen%2C+commerce%2C+TF%29+%28tiffin%2C+half%2C+penny%2C+george%2C+token%2C+canada%2C+lc*%2C+bust%29+-dollar+-chambre+-chamber+-industrie&_armrs=1&_dmd=1&_from=R14&_ipg=100&_salic=0
    02- http://coins.shop.ebay.com/i.html?_nkw=%281820%2C+harp*%2C+bh%29+%28bh%2C+bust%2C+harp*%2C+half*%2C+penn*%2C+georg*%2C+token*%2C+canad*%2C+kanad*%29+-dollar+-crown+-coronet+-capped+-caped+-gold+-cent+-kurs*+-gold+-silver+-shilling*&_sacat=11116&_trksid=p3286.m270.l1313&LH_LocatedIn=0&_sop=10&LH_IncludeSIF=1&_dmpt=Coins_US_Individual&_dmd=1&_odkw=%281820%2C+harp*%2C+bh%2C+bust%29+%28bh%2C+bust%2C+harp*%2C+half*%2C+penn*%2C+georg*%2C+token*%2C+canad*%2C+kanad*%29+-dollar+-crown+-coronet+-capped+-caped+-gold+-cent+-kurs*+-gold+-silver+-shilling*&_osacat=11116
    03- http://coins.shop.ebay.com/Coins-Paper-Money-/11116/i.html?LH_LocatedIn=1&LH_SALE_CURRENCY=0&LH_IncludeSIF=1&_nkw=%281832%2C+thistle%2C+nova%2C+scotia%29+%28thistle%2C+half%2C+penny%2C+george%2C+token%2C+canada%29+-dollar+-liberty+-dime+-capped+-cent+-shilling+-pound*+-commonwealth+-silver&_armrs=1&_dmd=1&_from=R14&_ipg=100&_salic=0
    04- http://coins.shop.ebay.com/Coins-Paper-Money-/11116/i.html?LH_LocatedIn=1&LH_SALE_CURRENCY=0&LH_IncludeSIF=1&_nkw=%281857%2C+%22self+government%22%2C+%22free+trade%22%2C+pe7*%2C+pe-%29+%28token%2C+halfpenny%2C+half%2C+penny%2C+canada%2C+pe7*%2C+pe-%2C+pei%2C+prince%2C+%22self+government%22%2C+%22free+trade%22%29+-eagle+-silver+-dollar+-liberty+-dime+-upper+-indian+-victoria*+-peace+-tasman*++-seated+-zealand&_armrs=1&_dmd=1&_from=R14&_ipg=100&_salic=0
    05- http://coins.shop.ebay.com/Coins-Paper-Money-/11116/i.html?LH_LocatedIn=1&LH_SALE_CURRENCY=0&LH_IncludeSIF=1&_nkw=%28ships%2C+colonies%29+%28ships%2C+token%2C+canada%2C+pei%2C+prince%2C+pe10%2C+pe-10%29+-roosevelt+-chinese+-australian+-proof+-specimen+-silver+-carib*+-fleet+-cent*+-boats+-50*&_armrs=1&_dmd=1&_from=R14&_ipg=100&_salic=0
    06- http://coins.shop.ebay.com/Coins-Paper-Money-/11116/i.html?LH_LocatedIn=1&LH_SALE_CURRENCY=0&LH_IncludeSIF=1&_nkw=%28speed%2C+plough%2C+success%2C+fisheries%29+-silver+-cupro*+-society+-proof+-pound*+-schering+-conference+-50+-note&_armrs=1&_dmd=1&_from=R14&_ipg=100&_salic=0
    07- http://coins.shop.ebay.com/Coins-Paper-Money-/11116/i.html?LH_LocatedIn=1&LH_SALE_CURRENCY=0&LH_IncludeSIF=1&_nkw=%28wellington%2C+cossack%2C+peninsular%29+%28medal%2C+coin%2C+halfpenny%2C+half%2C+penny%2C+token%2C+canada%2C+1812%2C+1813%2C+1814%2C+1815%2C+1816%2C+battl*%29&_armrs=1&_dmd=1&_from=R9&_ipg=100&_salic=0
    08- http://coins.shop.ebay.com/Coins-Paper-Money-/11116/i.html?LH_LocatedIn=1&LH_SALE_CURRENCY=0&LH_IncludeSIF=1&_nkw=%28bouquet%2C+sou%2C+sous%29+-plastique*+-blister+-assignat*+-vide+-fran*+-reunion+-bock+-capsule*+-coffret*+-double+-fdc+-pochette+-monaco+-scell*&_armrs=1&_dmd=1&_from=R14&_ipg=100&_salic=0
    09- http://coins.shop.ebay.com/Coins-Canada-/3377/i.html?LH_LocatedIn=1&LH_SALE_CURRENCY=0&LH_IncludeSIF=1&_nkw=%28breton%2C%22br.%22%2C%22br-%22%2C%22br+%22%29&_armrs=1&_dmd=1&_from=R14&_ipg=100&_pcats=11116&_salic=0&_sop=10
    10- http://coins.shop.ebay.com/Coins-Paper-Money-/11116/i.html?LH_LocatedIn=1&LH_SALE_CURRENCY=0&LH_IncludeSIF=1&_nkw=montreal+token&_armrs=1&_dmd=1&_from=R14&_ipg=100&_salic=0&_trksid=p3286
    11- http://coins.shop.ebay.com/Coins-Canada-/3377/i.html?LH_BIN=1&LH_LocatedIn=1&LH_SALE_CURRENCY=0&LH_IncludeSIF=1&_nkw=token&_armrs=1&_dmd=1&_from=R14&_ipg=100&_pcats=11116&_salic=0&_sop=10
    12- http://coins.shop.ebay.com/Coins-World-/256/i.html?LH_BIN=1&LH_LocatedIn=1&LH_SALE_CURRENCY=0&LH_IncludeSIF=1&_nkw=token*+%28canad*%2C+kanad*%2C+nova-scotia%2C+halfpenny%2C+penny%29&_armrs=1&_dmd=1&_from=R14&_ipg=100&_pcats=11116&_salic=0
    13- http://coins.shop.ebay.com/Coins-Paper-Money-/11116/i.html?LH_BIN=1&LH_SALE_CURRENCY=0&LH_IncludeSIF=1&LH_LocatedIn=1&_nkw=token&_armrs=1&_dmd=1&_from=R14&_ipg=100&_mPrRngCbx=1&_salic=3&_udhi=&_udlo=
    14- http://coins.shop.ebay.com/Tokens-/149940/i.html?LH_SALE_CURRENCY=0&LH_IncludeSIF=1&_armrs=1&_dmd=1&_mdo=Coins-Paper-Money&_mspp=&_pcats=3377%2C11116&_sop=10
    15- http://coins.shop.ebay.com/Other-/536/i.html?LH_SALE_CURRENCY=0&LH_IncludeSIF=1&_nkw=token*&_armrs=1&_dmd=1&_from=R2&_ipg=100&_pcats=3377%2C11116&_sop=10&_trksid=p3286.c0.m14
    16- http://coins.shop.ebay.com/Tokens-Other-/3455/i.html?LH_PrefLoc=1&LH_IncludeSIF=1&_nkw=token+%28canad*%2C+brit*%2C+nova*%2C+lower*%2C+upper*%2C+wellington%2C+edward%2C+penny%2C+pence%2C+halpenny%29&_armrs=1&_dmd=1&_from=R2&_ipg=&_pcats=3452%2C11116&_sargn=-1%26saslc%3D2&_trksid=p3286.c0.m14
    17- http://coins.shop.ebay.com/Coins-Paper-Money-/11116/i.html?LH_LocatedIn=1&LH_SALE_CURRENCY=0&LH_IncludeSIF=1&_nkw=%28halifax%2C+brunswick%2C+magdalen%2C+navigation%29+%28token*%2C+canad*%2C+kanad*%2C+pen*%2C+half%2C+colon*%29+-twenty-cent+-cent*+-thaler*+-german*+-pfen*&_armrs=1&_dmd=1&_from=R14&_ipg=100&_salic=0
    18- http://coins.shop.ebay.com/Coins-Paper-Money-/11116/i.html?LH_LocatedIn=1&LH_SALE_CURRENCY=0&LH_IncludeSIF=1&_nkw=%28canad*%2C+kanad*%2C+tok*%2C+montreal%2C+quebec%2C+roy%29+%28tn*%2C+kmtn*%2C+ktn*%29+-memphis+-tenessee+-tennessee+-meadows+-loaf+-whiskey+-nyc+-creamery+-transit+-city+-monorail+-columbia+-virginia+-argentina+-tourist+-nixon+-dairy&_armrs=1&_dmd=1&_from=R14&_ipg=100&_salic=0&_trksid=p3286.c0.m14
    19- http://coins.shop.ebay.com/Coins-Paper-Money-/11116/i.html?LH_LocatedIn=1&LH_SALE_CURRENCY=0&LH_IncludeSIF=1&_nkw=%28devins%2C+bolton%2C+macmillan%2C+mcmillan%2C+mcmillian%2C+macmillian%2C+counterstamp*%29+-2008+-2007+-lincoln&_armrs=1&_dmd=1&_from=R14&_ipg=100&_salic=0
    20- http://coins.shop.ebay.com/Coins-Paper-Money-/11116/i.html?LH_LocatedIn=1&LH_SALE_CURRENCY=0&LH_IncludeSIF=1&_nkw=rouleau+%28counter*%2C+token*%29&_armrs=1&_dmd=1&_from=R14&_ipg=100&_salic=0
    21- http://coins.shop.ebay.com/Coins-Paper-Money-/11116/i.html?LH_LocatedIn=1&LH_SALE_CURRENCY=0&LH_IncludeSIF=1&_nkw=%28bristol%2Cgupy%2Cguppy%29&_armrs=1&_dmd=1&_from=R14&_ipg=100&_salic=0
    22- http://coins.shop.ebay.com/Coins-Paper-Money-/11116/i.html?LH_LocatedIn=1&LH_SALE_CURRENCY=0&LH_IncludeSIF=1&_nkw=%28hudson*%2C+bay%2C+labrador%29+%28token*%2C+coin%2C+made%2C+mb%2C+nb%2C+canada%2C+rare%2C+labrador%2C+district%2C+arctic%2C+fox%2C+st-lawrence%2C+breton%2C+br-%2C+br*%29+-milita*+-dollar+-silver+-novelty+-1995+-bridge+-hobson+-%22bay+city%22+-gate+-%22green+bay%22+-%22tampa+bay%22+-%22three+mile%22+-pfen*+-%22bay+state%22+-calif*&_armrs=1&_dmd=1&_from=R14&_ipg=100&_salic=0&_trksid=p3286.c0.m14
    23- http://collectibles.shop.ebay.com/Cultures-Ethnicities-/3913/i.html?LH_LocatedIn=1&LH_SALE_CURRENCY=0&LH_IncludeSIF=1&_nkw=hudson*+bay&_armrs=1&_dmd=1&_from=R14&_ipg=100&_pcats=1&_salic=0&_sop=10
    24- http://collectibles.shop.ebay.com/Historical-Memorabilia-/13877/i.html?LH_LocatedIn=1&LH_SALE_CURRENCY=0&LH_IncludeSIF=1&_nkw=hudson*+bay&_armrs=1&_dmd=1&_from=R14&_ipg=100&_pcats=1&_salic=0&_sop=10
    25- http://coins.shop.ebay.com/Coins-Paper-Money-/11116/i.html?LH_LocatedIn=1&LH_SALE_CURRENCY=0&LH_IncludeSIF=1&_nkw=%28northwest%2C+%22north+west%22%2C+beaver%29+%28northwest%2C+%22north+west%22%2C+1820%2C+token%2C+company%2C+beaver%29+-silver+-set+-nickel+-cents+-distillery+-nickle+-industries+-fare+-telephone+-pipeline+-park+-roll+-gold+-diamond+-russia+-square+-pin+-coach&_armrs=1&_dmd=1&_from=R14&_ipg=100&_salic=0
    26- http://coins.shop.ebay.com/Coins-Paper-Money-/11116/i.html?LH_SALE_CURRENCY=0&LH_IncludeSIF=1&LH_LocatedIn=1&_nkw=yorkton&_armrs=1&_dmd=1&_from=R14&_ipg=100&_mPrRngCbx=1&_salic=0&_trksid=p3286.c0.m14&_udhi=&_udlo=
    27- http://coins.shop.ebay.com/Coins-Paper-Money-/11116/i.html?LH_LocatedIn=1&LH_SALE_CURRENCY=0&LH_IncludeSIF=1&_nkw=%281820%2C1822%29+%28anchor%2Cdollar%2Ccolon*%2Cbrit*%2Csilver%29&_armrs=1&_dmd=1&_from=R14&_ipg=100&_salic=0
    28- http://coins.shop.ebay.com/Coins-Paper-Money-/11116/i.html?LH_LocatedIn=1&LH_SALE_CURRENCY=0&LH_IncludeSIF=1&_nkw=%281811%2C1812%2C1813%2C1814%2C1815%2C1816%29+%28bank%2Ctoken%2Csilver%2Cshilling*%2Cpence%2Cbrit*%2Ctn*%29&_armrs=1&_dmd=1&_from=R14&_ipg=100&_salic=0
    29- http://coins.shop.ebay.com/Coins-Paper-Money-/11116/i.html?LH_LocatedIn=1&LH_SALE_CURRENCY=0&LH_IncludeSIF=1&_nkw=%28ireland%2Cirish%29+%28bank%2Ctoken*%29+-banknote+-note+-belfast+-central+-northern+-national+-provincial+-pound*+-specimen+-ulster&_armrs=1&_dmd=1&_from=R14&_ipg=100&_salic=0
    30- http://coins.shop.ebay.com/Coins-Paper-Money-/11116/i.html?LH_LocatedIn=1&LH_SALE_CURRENCY=0&LH_IncludeSIF=1&_nkw=%28nova%2Cscotia%2Cnovascotia%2Cnouvelle-ecosse%2Cvictoria%2CGeorge%2Ctoken%29+%281823%2C1824%2C1832%2C1840%2C1843%29+-farthing*+-shilling*+-brunswick+-Brunswick+-rupee*+-india+-Rupee*+-India&_armrs=1&_dmd=1&_from=R14&_ipg=100&_salic=0
    31- http://coins.shop.ebay.com/Coins-Paper-Money-/11116/i.html?LH_LocatedIn=1&LH_SALE_CURRENCY=0&LH_IncludeSIF=1&_nkw=blacks*&_armrs=1&_dmd=1&_from=R14&_ipg=100&_salic=0
    32- http://coins.shop.ebay.com/Coins-Paper-Money-/11116/i.html?LH_LocatedIn=1&LH_SALE_CURRENCY=0&LH_IncludeSIF=1&_nkw=1813+%28tiffin%2C+half%2C+penny%2C+george%2C+token*%2C+canad*%2C+lc*%2C+bust%29+-dollar+-chambre+-chamber+-industrie&_armrs=1&_dmd=1&_from=R14&_ipg=100&_salic=0
    33- http://coins.shop.ebay.com/Twenty-Five-Cents-/3385/i.html?LH_LocatedIn=1&LH_SALE_CURRENCY=0&LH_IncludeSIF=1&_nkw=1906&_armrs=1&_dmd=1&_from=R14&_ipg=100&_pcats=3377%2C11116&_salic=0&_sop=10&_trksid=p3286.c0.m14
    34- http://coins.shop.ebay.com/Coins-Paper-Money-/11116/i.html?LH_LocatedIn=1&LH_SALE_CURRENCY=0&LH_IncludeSIF=1&_nkw=1906+canad*&_armrs=1&_dmd=1&_from=R14&_ipg=100&_salic=0
    35- http://coins.shop.ebay.com/Coins-Paper-Money-/11116/i.html?LH_LocatedIn=1&LH_SALE_CURRENCY=0&LH_IncludeSIF=1&_nkw=%281805%2C1838%2C1839%2C1840%2C1845%2C1858%29+%28ir*%2Cmontreal%2Cmtl%2Cbank*%2Ctoken*%2Cship%2Cquebec%2Cbrit*%2Ccan*%2Ckan*%2Caccom*%2Cpen*%2Chalf*%29+-cent*+-quarter+-liberty+-victor*+-brazil*+-austr*+-slav*+-franc*+-bust+-dime*+-nickel*+-eagle+-silver+-mex*+-thal*+-pf*+-cheq*+-signed+-sp*+-repl*+-fart*+-bankno*+-note*+-bond*+-draf*+-pap*&_armrs=1&_dmd=1&_from=R14&_ipg=100&_salic=0
    36- http://coins.shop.ebay.com/Coins-Paper-Money-/11116/i.html?LH_LocatedIn=1&LH_SALE_CURRENCY=0&LH_IncludeSIF=1&_nkw=%28vexat*%2C+venat*%2C+canadiensis%2C+canadins*%2C+vc*%29&_armrs=1&_dmd=1&_from=R14&_ipg=100&_salic=0
    37- http://coins.shop.ebay.com/i.html?_nkw=%28ireland%2Cirish%2Charp%29+%28canad*%2Ckanad*%2Camer*%2Ccolon*%29&_sacat=11116&_trksid=p3286.m270.l1313&LH_LocatedIn=0&_sop=10&LH_IncludeSIF=1&_dmpt=Coins_US_Individual&_dmd=1&_odkw=%28ireland%2Cirish%2Charp%29+%28canad*%2Ckanad*%2Camer*%29&_osacat=11116
    38- http://coins.shop.ebay.com/i.html?_nkw=commerce+-franc*+-french+-chamb*+-bronze+-bank+-banque+-world+-bon+-indust*&_sacat=11116&_trksid=p3286.m270.l1313&LH_LocatedIn=0&_sop=10&LH_IncludeSIF=1&_dmpt=Coins_Bullion&_dmd=1&_odkw=commerce+-franc*+-french+-chamb*+-bronze+-bank+-banque&_osacat=11116
    39- http://coins.shop.ebay.com/i.html?_nkw=hudson*+bay&_sacat=11116&_trksid=p3286.m270.l1313&LH_LocatedIn=0&LH_IncludeSIF=1&_dmpt=Coins_Bullion&_dmd=1&_odkw=%28hudson*%2C+bay%2C+labrador%29+%28token*%2C+coin%2C+made%2C+mb%2C+nb%2C+canada%2C+rare%2C+labrador%2C+district%2C+arctic%2C+fox%2C+st-lawrence%2C+breton%2C+br-%2C+br*%29+-milita*+-dollar+-silver+-novelty+-1995+-bridge+-hobson+-%22bay+city%22+-gate+-%22green+bay%22+-%22tampa+bay%22+-%22three+mile%22+-pfen*+-%22bay+state%22+-calif*&_osacat=11116
    40- http://coins.shop.ebay.com/i.html?_nkw=token*+%28halfp*%2Cpenn*%29+-18th+-encas*+-transit+-work*+-wales+-austral*+-melbou*+-mason*+-company+-178*+-179*+-184*+-185*+-186*+-187*+-188*+-189*+-190*+-191*+-192*+-193*+-194*+-195*+-196*+-197*+-198*+-199*+-200*+-201*&_sacat=11116&_trksid=p3286.m270.l1313&LH_LocatedIn=0&LH_IncludeSIF=1&_dmd=1&_odkw=token*+%28halfp*%2Cpenn*%29+-18th+-encas*+-work*+-wales+-austral*+-melbou*+-mason*+-company+-178*+-179*+-184*+-185*+-186*+-187*+-188*+-189*+-190*+-191*+-192*+-193*+-194*+-195*+-196*+-197*+-198*+-199*+-200*+-201*&_osacat=11116
    41- http://coins.shop.ebay.com/i.html?_nkw=%28prince+edward*+island*%2Cpei%29+%28token*%2Cship*%2C180*%2C181*%2C182*%2C183*%2C184*%29&_sacat=11116&_trksid=p3286.m270.l1313&LH_LocatedIn=0&LH_IncludeSIF=1&_dmd=1&_odkw=%28prince+edward*+island*%2Cpei%29+%28token*%2Cship*%2C180*%2C181*%2C182*%2C183*%2C184*%29&_osacat=11116
    42- http://coins.shop.ebay.com/i.html?_nkw=%28peck*%2Cstarbuck*%2Cht*%2Chard*%2Ctoken*%29+%28peck*%2Cstarbuck*%2C363%2C366%2C368%2C371%29&_sacat=11116&_trksid=p3286.m270.l1313&LH_LocatedIn=0&LH_IncludeSIF=1&_dmd=1&_odkw=%28peck*%2Cstarbuck*%2Cht*%2Chard*%29+%28peck*%2Cstarbuck*%2C363%2C366%2C368%2C371%29&_osacat=11116
    43- http://coins.shop.ebay.com/i.html?_nkw=-newfoundland+-nf+-foundland+-1871+-nfld&_sacat=149939&_odkw=-newfoundland+-nf+-foundland+-1871&_osacat=149939&_trksid=p3286.c0.m270.l1313
    44- http://coins.shop.ebay.com/i.html?_nkw=%28token*%2C+montr*%2C+canad*%2C+kanad*%2C+molson%2C+nova*%2C+scotia%2C+lower*%2C+princ*%2C+pe-*%2C+welling*%2C+ships%2C+colon*%29+%28180*%2C+181*%2C+182*%2C+183*%2C+184*%29+-hard&_sacat=11116&_trksid=p3286.m270.l1313&LH_LocatedIn=0&LH_BIN=1&LH_IncludeSIF=1&_dmd=1&_odkw=%28token*%2C+montr*%2C+canad*%2C+kanad*%2C+molson%2C+nova*%2C+scotia%2C+lower*%2C+princ*%2C+pe-*%2C+welling*%2C+ships%2C+colon*%29+%28180*%2C+181*%2C+182*%2C+183*%2C+184*%29+-hard&_osacat=11116
    45- http://desc.shop.ebay.com/Coins-Canada-/3377/i.html?LH_TitleDesc=1&LH_BIN=1&LH_LocatedIn=0&LH_IncludeSIF=1&_nkw=%28token*%2C+montr*%2C+canad*%2C+kanad*%2C+molson%2C+nova*%2C+scotia%2C+lower*%2C+princ*%2C+pe-*%2C+welling*%2C+ships%2C+colon*%29+%28180*%2C+181*%2C+182*%2C+183*%2C+184*%29+-hard&_catref=1&_dmd=1&_dmpt=Coins_US_Individual&_fln=1&_trksid=p3286.c0.m282


    Résumé très sommaire pour chaque (format, categorie, présence de mots clef ou pas): 

    01- All auction formats dans COINS AND PAPER MONEY avec mots clef
    02- All auction formats dans COINS AND PAPER MONEY avec mots clef
    03- All auction formats dans COINS AND PAPER MONEY avec mots clef
    04- All auction formats dans COINS AND PAPER MONEY avec mots clef
    05- All auction formats dans COINS AND PAPER MONEY avec mots clef
    06- All auction formats dans COINS AND PAPER MONEY avec mots clef
    07- All auction formats dans COINS AND PAPER MONEY avec mots clef
    08- All auction formats dans COINS AND PAPER MONEY avec mots clef
    09- All auction formats dans COINS / CANADA avec mots clef
    10- All auction formats dans COINS AND PAPER MONEY avec mots clef
    11- BUY IT NOW dans COINS / CANADA avec un seul mot clef
    12- BUY IT NOW dans COINS / WORLD avec mots clef
    13- BUY IT NOW dans COINS AND PAPER MONEY avec un seul mot cle
    14- Categorie COINS / CANADA / TOKENS au complet sans mot clef
    15- All auction formats dans COINS / CANADA / OTHER avec un seul mot clef
    16- All auction formats dans COINS / ... / TOKENS / OTHER avec mots clef (exception: Worldwide au lieu de Located in any country)
    17- All auction formats dans COINS AND PAPER MONEY avec mots clef
    18- All auction formats dans COINS AND PAPER MONEY avec mots clef
    19- All auction formats dans COINS AND PAPER MONEY avec mots clef
    20- All auction formats dans COINS AND PAPER MONEY avec mots clef
    21- All auction formats dans COINS AND PAPER MONEY avec mots clef
    22- All auction formats dans COINS AND PAPER MONEY avec mots clef
    23- All auction formats dans COLLECTIBLES / CULTURES & ETHNICITIES avec mots clef
    24- All auction formats dans COLLECTIBLES / HISTORICAL MEMORABILIA avec mots clef
    25- All auction formats dans COINS AND PAPER MONEY avec mots clef
    26- All auction formats dans COINS AND PAPER MONEY avec un seul mot clef
    27- All auction formats dans COINS AND PAPER MONEY avec mots clef
    28- All auction formats dans COINS AND PAPER MONEY avec mots clef
    29- All auction formats dans COINS AND PAPER MONEY avec mots clef
    30- All auction formats dans COINS AND PAPER MONEY avec mots clef
    31- All auction formats dans COINS AND PAPER MONEY avec un seul mot clef
    32- All auction formats dans COINS AND PAPER MONEY avec mots clef
    33- All auction formats dans COINS / CANADA / TWENTY FIVE CENTS avec un seul mot clef
    34- All auction formats dans COINS AND PAPER MONEY avec mots clef
    35- All auction formats dans COINS AND PAPER MONEY avec mots clef
    36- All auction formats dans COINS AND PAPER MONEY avec mots clef
    37- All auction formats dans COINS AND PAPER MONEY avec mots clef
    38- All auction formats dans COINS AND PAPER MONEY avec mots clef
    39- All auction formats dans COINS AND PAPER MONEY avec mots clef
    40- All auction formats dans COINS AND PAPER MONEY avec mots clef
    41- All auction formats dans COINS AND PAPER MONEY avec mots clef
    42- All auction formats dans COINS AND PAPER MONEY avec mots clef
    43- All auction formats dans COINS / CANADA / PROVINCES avec mots clef
    44- BUY IT NOW dans COINS AND PAPER MONEY avec mots clef
    45- BUY IT NOW dans COINS / CANADA avec mots clef

    */
    public class StephaneSearchQuery : AbstractSearchQuery
    {
        public StephaneSearchQuery(string url) : base(url) { }

        protected override void LoadFromURL(string url)
        {
            string[] parts = url.Replace("http://", "").Split('/');
            if (parts.Length == 4)
                Categories.Add(parts[2]);
            string interessant = parts[parts.Length - 1].Substring("i.html?".Length)
                    .Replace("%28", "(")
                    .Replace("%29", ")")
                    .Replace("+", " ")
                    .Replace("%2C", ",");
            string[] args = interessant.Split('&');
            Dictionary<string,string> dArgs = new Dictionary<string,string>();
            foreach( string a in args )
            {
                string[] kv = a.Split('=');
                dArgs.Add(kv[0],kv[1]);
            }
            if (dArgs.ContainsKey("_nkw"))
                Keywords = dArgs["_nkw"];
            if (dArgs.ContainsKey("_sacat"))
                Categories.Add(dArgs["_sacat"]);
            if (dArgs.ContainsKey("_osacat"))
                Categories.Add(dArgs["_osacat"]);
            if (dArgs.ContainsKey("LH_BIN") && dArgs["LH_BIN"] == "1")
                Filters.Add(ItemFilterType.ListingType, "AuctionWithBIN");
            if (dArgs.ContainsKey("LH_LocatedIn") && dArgs["LH_LocatedIn"] == "1")
                Filters.Add(ItemFilterType.LocatedIn, "ANY");

        }
    }
}
